package homework0306;

import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;

import java.io.File;
import java.io.IOException;
import java.util.Scanner;

public class Text5 {
    public static void main(String[] args) throws IOException {
        Scanner scan=new Scanner(System.in);
        System.out.println("请输入您要操作的目录名");
        String s=scan.next();
        File file=new File("./"+s);
        while (file.exists()){
            System.out.println("文件已存在，请重新输入");
            s=scan.next();

        }
        file.mkdirs();
         System.out.println("文件已创建");

    }
}
